package com.yootk.jdbc.vo;

public class Book {
    private Long bid ;
    private String title ;
    private String author ;
    private Double price ;

    public Long getBid() {
        return bid;
    }

    public void setBid(Long bid) {
        this.bid = bid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "【图书信息】编号：" + this.getBid() + "，名称：" +
                this.getTitle() + "，作者：" + this.getAuthor() + "，价格：" + this.getPrice() ;
    }
}
